
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <base href="<%=request.getContextPath()%>/"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="common/bootstrap/css/bootstrap.css" media="all">
    <link rel="stylesheet" type="text/css" href="common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="css/personal.css" media="all">
    <link href="bootstrap/dist/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<section class="layui-larry-box">
    <div class="larry-personal">

    </div>
    </blockquote>

    <!-- 操作日志 -->
    <div class="layui-form news_list">
        <table class="layui-table">
            <colgroup>
                <col width="50">
                <col>
                <col width="9%">
                <col width="9%">
                <col width="9%">
                <col width="9%">
                <col width="9%">
                <col width="15%">
            </colgroup>
            <thead>
            <tr>
                <%--<th><input name="" lay-skin="primary" lay-filter="allChoose" id="allChoose" type="checkbox">
                    <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
                </th>--%>
                <th>零件ID</th>
                <th>零件号</th>
                <th>零件名称</th>
                <th>零件英文名称</th>
                <th>供应商</th>
                <th>易损件</th>
                <th>是否直供</th>
                <th>最小采购量</th>
                <th>本体图</th>
                <th>剩余总量</th>
                <th>关联采购组</th>
                <th>销售单价USD</th>
                <th>采购单价USD</th>
                <c:choose>
                    <c:when test="${rolename=='admin'}">
                        <th><a href="accessories/preAdd/">添加</a></th>
                    </c:when>
                </c:choose>
            </tr>
            </thead>
            <tbody class="news_content">
            <tr>
                <c:forEach items="${list}" var="info">
                <%--<td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
                    <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
                </td>--%>
                <td>${info.pieceId}</td>
                <td>${info.pieceNo}</td>
                <td>${info.pieceName}</td>
                <td>${info.pieceEname}</td>
                <td>${info.supplyName}</td>
                <td>${info.damagType}</td>
                <td>${info.isDirect}</td>
                <td>${info.minQuan}</td>
                <td>${info.pieceIcon}</td>
                <td>${info.piecePrice}</td>
                <td>${info.memo}</td>
                <td>${info.priceUsdX}</td>
                <td>${info.priceUsdC}</td>
                <c:choose>
                <c:when test="${rolename=='admin'}">
                <td>
                    <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                            操作
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                            <li><a href="accessories/preUpdate/${info.pieceId}">修改</a></li>
                            <li><a href="accessories/delete/${info.pieceId}">删除</a></li>
                        </ul>
                    </div>
                </td>
                </c:when>
                </c:choose>
            </tr>
            </c:forEach>
            </tbody>
        </table>

    </div>
    <!-- 登录日志 -->
    <div class="layui-tab-item layui-field-box">
        <table class="layui-table table-hover" lay-even="" lay-skin="nob">
            <thead>
            <tr>
                <th><input type="checkbox" id="selected-all"></th>
                <th>ID</th>
                <th>管理员账号</th>
                <th>状态</th>
                <th>最后登录时间</th>
                <th>上次登录IP</th>
                <th>登录IP</th>
                <th>IP所在位置</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td><input type="checkbox"></td>
                <td>110</td>
                <td>admin</td>
                <td>后台登录成功</td>
                <td>2016-12-19 14:26:03</td>
                <td>127.0.0.1</td>
                <td>127.0.0.1</td>
                <td>Unknown</td>
            </tr>
            </tbody>
        </table>
        <div class="larry-table-page clearfix">
            <a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>
            <div id="page2" class="page"></div>
        </div>
    </div>
    </div>
    </div>

</section>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="bootstrap/dist/js/bootstrap.js"></script>
<script type="text/javascript" src="common/layui/layui.js"></script>
<script type="text/javascript" src="js/newslist.js"></script>
<script type="text/javascript">
    layui.use(['jquery','layer','element','laypage'],function(){
        window.jQuery = window.$ = layui.jquery;
        window.layer = layui.layer;
        var element = layui.element(),
            laypage = layui.laypage;


        laypage({
            cont: 'page',
            pages: 10 //总页数
            ,
            groups: 5 //连续显示分页数
            ,
            jump: function(obj, first) {
                //得到了当前页，用于向服务端请求对应数据
                var curr = obj.curr;
                if(!first) {
                    //layer.msg('第 '+ obj.curr +' 页');
                }
            }
        });

        laypage({
            cont: 'page2',
            pages: 10 //总页数
            ,
            groups: 5 //连续显示分页数
            ,
            jump: function(obj, first) {
                //得到了当前页，用于向服务端请求对应数据
                var curr = obj.curr;
                if(!first) {
                    //layer.msg('第 '+ obj.curr +' 页');
                }
            }
        });
    });
</script>
</body>
</html>